<template>
  <router-view />
</template>
  
<script lang="ts" setup>
import { ref, reactive, provide } from "vue";
import { useRouter } from "vue-router";

const { currentRoute } = useRouter();
const query = currentRoute.value.query;
console.log("当前页面路由传参", query);
const queryParams = reactive({
  classId: 100,
  pageNum: 1,
  startTime: null,
  endTime: null,
});
provide("queryParams", queryParams);
</script>